Repository navigation
feat(template)!: replace lint and test workflows with a single ci.yml - #35
Merged
Merged
Conversation
The template now renders one Copier-managed ci.yml that calls the reusable workflows of github-workflows, with a scoped "Tests success" gate, and scripts/check.sh gains lint and test targets. BREAKING CHANGE: lint.yml, test.yml, reusable-pre-commit.yml and the reusable_lint and test_workflow questions are removed; copier update deletes the two workflows, local edits included. Required status checks change. See docs/migration-guide.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…migration Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ages Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Template v6: consumers get one Copier-managed
ci.ymlcalling the reusable workflows of github-workflows, andscripts/check.sh [lint|test]as the single validation command.Issues
Refs #34
Refs #33
Changes
scripts/check.shgainslintandtesttargets; no argument runs both, anything else exits 2.uv, so their versions come fromuv.lock; coverage options (singlesrcroot, namespace packages included) and[tool.mypy] filesmove into the starterpyproject.toml.template/.github/workflows/ci.yml.jinja:route,lint,pytest,coverageand the scopedTests successgate. The github-workflows pins are SHA00092729e18625c0a305c96ec35d0247fdc78868(main, not released yet).lint.yml,test.yml,reusable-pre-commit.yml, and thereusable_lintandtest_workflowquestions.Test plan
bash scripts/tests/agent-template.sh <engine>/check-project-agents.py: pass.python3 scripts/tests/test_release_*.py: pass.Rendered project with a typed package and a test:
bash scripts/check.shpasses and writescoverage.xml; actionlint accepts the renderedci.yml.copier copy --vcs-ref HEADthenbash scripts/check.sh lint: pass.copier updatefrom v5.3.1 removeslint.ymlandtest.yml, local edits included (documented).Rendered project: a module no test imports, in a directory without
__init__.py, appears incoverage.xml; thesource = ["."]variant with the documentedomitexcludes.venvand tests.Screenshots
N/A
Risk
Intent
change, depth deep: public contract break (removed files and questions, renamed required status contexts).python -Pcan break repositories that import from their root (migration guide, step 6).Pre-existing, not addressed here: a fresh render fails
check.shuntil a test exists (pytest exit 5); the starterpyproject.tomlcannot build a flat-layout package.How to revert
Revert the squash commit and release a new major or point adopters back to v5.3.1.
Deployment notes
docs/migration-guide.md, including required status checks.Post-deploy verification
First adopter (geography, #33):
route/needsbehaviour of thepr-route.ymlcaller on a real run, and the required-gates audit passes.🤖 Generated with Claude Code